#include <iostream>
#include "Sales_item.h"

int main(void)
{
    Sales_item trans1, trans2;
    int num = 1;
    std::cout << "Enter some sales records:\n";
    if (std::cin >> trans1)
    {
        while (std::cin >> trans2)
        {
            if (compareIsbn(trans1, trans2))
            {
                num++;
            }
            else
            {
                std::cout << trans1.isbn() << " total is :" 
                    << num << " records" << std::endl;
            }
        }
        std::cout << trans1.isbn() << " tatoal is :"
            << num << " records" << std::endl;

    }
    else
    {
        std::cout << "No datas" << std::endl;
        return -1;
    }
    return 0;
}
